package com.jhhc.RHDB.Data.Dao;


import java.util.List;

import com.jhhc.RHDB.Data.Pojo.ST_RSVR_R;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.jhhc.RHDB.Data.Pojo.ST_RIVER_R;
import com.jhhc.RHDB.Data.Pojo.ST_RIVER_R5;

@Mapper
public interface ST_RIVER_R5Mapper {

    //插入河道数据
    int insertHxRIVERData(@Param("list") List<ST_RIVER_R> list);


    int insert(ST_RIVER_R record);

    ST_RIVER_R5 selectByPrimaryKey(@Param("stcd") String stcd, @Param("tm") String tm);

    List<ST_RIVER_R> selectAll();


    int updateByPrimaryKey(ST_RIVER_R5 record);

    int DeleteData(@Param("stcd") String stcd, @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<ST_RIVER_R> selectByStationArrys(@Param("stcd") List<String> stcd, @Param("startTime") String startTime,
                                          @Param("endTime") String endTime);

    int InsertData(ST_RIVER_R t);

    //最新一条
    List<ST_RIVER_R>  selectRIVERNewEstData(@Param("stcd") List<String> stcd);

    //查询有数据的时间

    //第一条
    ST_RIVER_R selectStartDate(@Param("stcd") String stcd);
    //最后一条
    ST_RIVER_R selectEndDate(@Param("stcd") String stcd);

}